package com.great.meal.search.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.great.meal.search.dao.DishDao;
import com.great.meal.search.domain.Dish;

@Controller
@RequestMapping("/dish.do")
public class DishController {
	
	@Autowired
	private DishDao dishDao;
	
	/**
	 * 修改菜单
	 * @param dish
	 * @return
	 */
	@RequestMapping(params = "method=editDish")
	public String editDish(Dish dish){
	    
		dishDao.saveOrUpdate(dish);
		
		return null;
	}

}
